import request from '@/utils/request'

// 查询IconAvatar列表
export function listAvatar(query) {
  return request({
    url: '/icon/avatar/list',
    method: 'get',
    params: query
  })
}

// 查询IconAvatar详细
export function getAvatar(id) {
  return request({
    url: '/icon/avatar/' + id,
    method: 'get'
  })
}

// 新增IconAvatar
export function addAvatar(data) {
  return request({
    url: '/icon/avatar',
    method: 'post',
    data: data
  })
}

// 修改IconAvatar
export function updateAvatar(data) {
  return request({
    url: '/icon/avatar',
    method: 'put',
    data: data
  })
}

// 删除IconAvatar
export function delAvatar(id) {
  return request({
    url: '/icon/avatar/' + id,
    method: 'delete'
  })
}

// 导出IconAvatar
export function exportAvatar(query) {
  return request({
    url: '/icon/avatar/export',
    method: 'get',
    params: query
  })
}